import request from '@/utils/request'

// 查询商户信息审核列表
export function listMerchantreviews(query) {
  return request({
    url: '/masterrabbit-kaixuan/merchantreviews/list',
    method: 'get',
    params: query
  })
}

// 查询商户信息审核详细
export function getMerchantreviews(reviewId) {
  return request({
    url: '/masterrabbit-kaixuan/merchantreviews/' + reviewId,
    method: 'get'
  })
}

// 新增商户信息审核
export function addMerchantreviews(data) {
  return request({
    url: '/masterrabbit-kaixuan/merchantreviews',
    method: 'post',
    data: data
  })
}

// 修改商户信息审核
export function updateMerchantreviews(data) {
  return request({
    url: '/masterrabbit-kaixuan/merchantreviews',
    method: 'put',
    data: data
  })
}

// 删除商户信息审核
export function delMerchantreviews(reviewId) {
  return request({
    url: '/masterrabbit-kaixuan/merchantreviews/' + reviewId,
    method: 'delete'
  })
}

export function getUserName(userId) {
  return request({
    url: `/masterrabbit-kaixuan/merchantreviews/getuserName/` + userId,
    method: 'get'
  })
}
